const IcyPoorDB = require('../src/app.js');

const db = new IcyPoorDB('IpList', './db');
db.add('sdjfj3', 'jslajiw3j')
  .then(() => {
    console.log('OK');
  });

db.read('sdjfj3')
  .then(data => {
    console.log(data);
  });

db.add('sbsbsbsbsbsbs1', 'skjfkajiiiiiiiiiiii')
  .then(() => {
    console.log('OK');
  });

db.read('sbsbsbsbsbsbs1')
  .then(data => {
    console.log(data);
  });